package com.lzhan.day17;

import java.io.InputStream;
import java.net.URL;

public class DemoClassLoader {

	public static void main(String[] args) {
		//加载classpath的环境变量设置的类
		ClassLoader system = ClassLoader.getSystemClassLoader();
		System.out.println(system);
		InputStream is = system.getResourceAsStream("a.txt");
		if(is == null){
			System.out.println("bad");
		}else{
			System.out.println("good");
		}
		


	}

}
